'use strict'

class NewsController {
  * index (request, response) {
    yield response.send('新闻列表')
   }

   // * show (request, response) {
   //   const id = request.param('id','暂时没有～');
   //   console.log(id)
   //   yield response.send(`新闻ID：${id}`);
   //  }
   // * popular (request, response) {
   //   console.log('来自自定义路由')
   //   yield response.send('新闻详情 来自自定义路由')
   // }
   * getPopular (request, response){
     const id = request.param('id','暂时没有～');
     yield response.send('adnois V4版的自定义路由方法: '+ id)
   }
}

module.exports = NewsController
